package com.evaluation_system.service;

import com.evaluation_system.pojo.DTO.FilePageQueryDTO;
import com.evaluation_system.pojo.DTO.UploaderPageQueryDTO;
import com.evaluation_system.pojo.Result.PageResult;
import com.evaluation_system.pojo.entity.*;
import org.springframework.web.multipart.MultipartFile;



import java.util.Map;

public interface UploaderService {
    public abstractInfo getAbstract();
    public encryptInfo getEncryptInfo();
    public Integer getUserId(String username);

    public Map<String, Object> encryptInfo(MultipartFile file, String filename);

    public void saveFile(UploaderFile uploaderFile);

    public String saveAliyun(byte[] fileBytes,Integer id,String fileName);

    PageResult<Uploader> pageQuery(UploaderPageQueryDTO uploaderPageQueryDTO);

    void add(Uploader uploader);

    void update(Uploader uploader);

    void deleteById(Integer id);

    Integer commitBlockChain(Integer fileId,String summary,String ScoreId);

    Integer getFileId(String fileName);

    PageResult<saveFileInfo> readFile(FilePageQueryDTO filePageQueryDTO);

    Uploader SelectById(Integer userId);

    Integer FilenameByUploaderId(String filename);

    void updateFile(UploaderFile uploaderFile);
}
